package edu.hnu.commonutils.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class User {

     Long id;
     /**
      * 用户类型 -1表示管理员    0表示trader   1表示clientSalesperson
      */
     int userType;
     Boolean authorized;

     public Boolean isAuthorized(){
          return this.authorized;
     }
}
